//---------------------------------------------------------------------------

#ifndef FormItemDrugGenericNamesH
#define FormItemDrugGenericNamesH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include "DBGridEh.hpp"
#include "DBGridEhGrouping.hpp"
#include "FIBDatabase.hpp"
#include "FIBDataSet.hpp"
#include "GridsEh.hpp"
#include "pFIBDatabase.hpp"
#include "pFIBDataSet.hpp"
#include "PropFilerEh.hpp"
#include "PropStorageEh.hpp"
#include "TemplateListEditor.h"
#include <Data.DB.hpp>
#include <Vcl.ComCtrls.hpp>
#include <Vcl.ExtCtrls.hpp>
#include <Vcl.ImgList.hpp>
#include <Vcl.ToolWin.hpp>
#include "FIBQuery.hpp"
#include "pFIBQuery.hpp"
//---------------------------------------------------------------------------
class TItemDrugGenericNamesForm : public TListEditorTemplate
{
__published:	// IDE-managed Components
	TDBGridEh *PharmGroupsSetDBGridEh;
	TDataSource *PharmGroupsSetDataSource;
	TpFIBDataSet *PharmGroupsSetDataSet;
	TpFIBQuery *ClearPharmGroupSetQuery;
	TpFIBQuery *AddPharmGroupQuery;
	TSplitter *Splitter1;
	void __fastcall PharmGroupsSetDBGridEhCellClick(TColumnEh *Column);
	void __fastcall PharmGroupsSetDBGridEhDblClick(TObject *Sender);
	void __fastcall PharmGroupsSetDBGridEhKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall DataSetAfterPost(TDataSet *DataSet);
	void __fastcall DBGridEhKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall PharmGroupsSetDBGridEhColumnsGetCellParams(TObject *Sender, bool EditMode,
          TColCellParamsEh *Params);
	void __fastcall FormShow(TObject *Sender);
	void __fastcall DataSetAfterScroll(TDataSet *DataSet);
	void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
	void __fastcall DataSetBeforePost(TDataSet *DataSet);
	void __fastcall FormKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall DataSetAfterCancel(TDataSet *DataSet);
	void __fastcall PharmGroupsSetDBGridEhExit(TObject *Sender);

private:	// User declarations
	void __fastcall SavePharmGroupsSet();
	void __fastcall CancelPharmGroupsSet();
	bool __fastcall IsPharmGroupsSetChanged();
public:		// User declarations
	__fastcall TItemDrugGenericNamesForm(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TItemDrugGenericNamesForm *ItemDrugGenericNamesForm;
//---------------------------------------------------------------------------
#endif
